<!DOCTYPE html>
<html lang="en">
<include file="./Application/Home/View/Layout/head.html" />

        <link href="__PUBLIC__/assets/bootstrap/css/select2.css" rel="stylesheet" />
        <link href="__PUBLIC__/assets/bootstrap/css/jquery.dataTables.min.css" rel="stylesheet">
<style type="text/css">
.loadEffect{
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto;
	display:none;
}
.loadEffect span{
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: lightgreen;
    position: absolute;
    -webkit-animation: load 1.04s ease infinite;
 }
 @-webkit-keyframes load{
    0%{
       opacity: 1;
    }
    100%{
       opacity: 0.2;
    }
 }
 .loadEffect span:nth-child(1){
    left: 0;
    top: 50%;
    margin-top:-8px;
    -webkit-animation-delay:0.13s;
 }
 .loadEffect span:nth-child(2){
    left: 14px;
    top: 14px;
    -webkit-animation-delay:0.26s;
 }
 .loadEffect span:nth-child(3){
    left: 50%;
    top: 0;
    margin-left: -8px;
    -webkit-animation-delay:0.39s;
 }
 .loadEffect span:nth-child(4){
    top: 14px;
    right:14px;
    -webkit-animation-delay:0.52s;
 }
 .loadEffect span:nth-child(5){
    right: 0;
    top: 50%;
    margin-top:-8px;
    -webkit-animation-delay:0.65s;
 }
 .loadEffect span:nth-child(6){
    right: 14px;
    bottom:14px;
    -webkit-animation-delay:0.78s;
 }
 .loadEffect span:nth-child(7){
    bottom: 0;
    left: 50%;
    margin-left: -8px;
    -webkit-animation-delay:0.91s;
 }
 .loadEffect span:nth-child(8){
    bottom: 14px;
    left: 14px;
    -webkit-animation-delay:1.04s;
 }
	 .Alertmessage{
		text-align: center;
	    color: red;
	 }
 </style>


    <body>
        <block name="header">
           <include file="block/header"/>
        </block>
        <section>
            <div class="mainwrapper">
			   <block name="left">
			   <include file="block/left" />
               </block>

                <div class="mainpanel">
                    <div class="contentpanel">

                       	<div class="col-md-12">
                                <form id="basicForm" action="" method="post">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <div class="panel-btns">
                                            <a href="#" class="panel-minimize tooltips" data-toggle="tooltip" title="Minimize Panel"><i class="fa fa-minus"></i></a>
                                            <a href="#" class="panel-close tooltips" data-toggle="tooltip" title="Close Panel"><i class="fa fa-times"></i></a>
                                        </div><!-- panel-btns -->
                                        <h4 class="panel-title">编辑联系人</h4>
                                    </div><!-- panel-heading -->
                                    <div class="panel-body">
                                        <div class="row">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">名称 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" name="contactname" class="form-control" placeholder="用户名" value="{$rs.contactname}" required />
                                                    <input type="hidden" name="pid" class="form-control"  value="{$rs.pid}"  />
                                                </div>
                                            </div><!-- form-group -->



                                            <div class="form-group">
                                            <label class="col-sm-2 control-label">所属分组<span class="asterisk">*</span></label>
                                            <div class="col-sm-6">
                                                <select id="fruits" data-placeholder="Choose One" name="deptid" class="width100p" required>
                                                    <foreach name="dept" item="list">
                                                        <option value="{$list.deptid}" <if condition="$list.deptid eq $rs.deptid "> selected</if> >{$list.deptname}</option>
                                                    </foreach>
                                                </select>
                                            </div>
                                        </div><!-- form-group -->

                                            <div class="form-group clearfix">
                                                <label class="col-sm-2 control-label">号码1 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" name="phone1" id="phone1" value="{$rs.phone1}" class="form-control" placeholder="电话1"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group clearfix">
                                                <label class="col-sm-2 control-label">号码2 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone2" name="phone2" value="{$rs.phone2}" class="form-control" placeholder="电话2"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group clearfix">
                                                <label class="col-sm-2 control-label">号码3 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone3" name="phone3" value="{$rs.phone3}" class="form-control" placeholder="电话3"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">号码4 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone4" name="phone4" value="{$rs.phone4}" class="form-control" placeholder="电话4"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">号码5 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone5" name="phone5" value="{$rs.phone5}" class="form-control" placeholder="电话5"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">号码6 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone6" name="phone6" value="{$rs.phone6}" class="form-control" placeholder="电话6"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">号码7 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone7" name="phone7" value="{$rs.phone7}" class="form-control" placeholder="电话7"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">号码8 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone8" name="phone8" value="{$rs.phone8}" class="form-control" placeholder="电话8"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">号码9 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone9" name="phone9" value="{$rs.phone9}" class="form-control" placeholder="电话9"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">号码10 <span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <input type="text" id="phone10" name="phone10" value="{$rs.phone10}" class="form-control" placeholder="电话10"  />
                                                </div>
                                            </div><!-- form-group -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">备注信息<span class="asterisk">*</span></label>
                                                <div class="col-sm-6">
                                                    <textarea rows="5" name="remark" class="form-control" placeholder="备注信息">{$rs.remark}</textarea>
                                                </div>
                                            </div><!-- form-group -->
                                        </div><!-- row -->
                                        <div class="modal-footer col-sm-12" style="text-align: center">
									        <a href="/home/Account/phoneBook" class="btn btn-default" data-dismiss="modal">取消</a>
									        <button type="submit" class="btn btn-primary">保存</button>
									    </div>
                                    </div><!-- panel-body -->

                                </div><!-- panel -->
                                </form>

                            </div><!-- col-md-6 -->



                        </div><!-- panel -->


                    </div><!-- contentpanel -->
                </div><!-- mainpanel --><!-- mainpanel -->
            </div><!-- mainwrapper -->


        </section>


        <script src="__PUBLIC__/assets/bootstrap/js/bootstrap.min.js"></script>
        <script src="__PUBLIC__/assets/bootstrap/js/custom.js"></script>
        <script src="__PUBLIC__/assets/bootstrap/js/select2.min.js"></script>


<script type="text/javascript">
$(document).ready( function () {
    var canManage = "{$canManage}";
    if(canManage == 0){
        $('#alertModel2').modal('show');
        $('.Alertmessage').html('没有管理权限，请联系管理员')
        return;
    }
	// Validation with select boxes
    jQuery("#flowers, #fruits").select2({
        minimumResultsForSearch: -1
    });
})
</script>


    </body>
</html>
